package com.haiheng.library_base.db

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey
import java.util.Date

/**
 *
 * @Des:
 * @Author: hwz
 * @Date:2023/6/27 0027
 * @Version: 1.0
 */
@Entity(tableName = "book_inventory_info", indices = [Index(value = ["barCode"], unique = true)])
class BookInventoryInfo (
    @PrimaryKey(autoGenerate = true)
    val id: Long = 0,
    @ColumnInfo(name = "author")
    var author: String? = null,
    @ColumnInfo(name = "barCode")
    var barCode: String? = null,
    @ColumnInfo(name = "bookImgUrl")
    var bookImgUrl: String? = null,
    @ColumnInfo(name = "bookTitle")
    var bookTitle: String? = null,
    @ColumnInfo(name = "callNumber")
    var callNumber: String? = null,
    @ColumnInfo(name = "circulationStatus")
    var circulationStatus: Int = 0,
    @ColumnInfo(name = "fixContainerId")
    var fixContainerId: Int = 0,//应在馆藏位置
    @ColumnInfo(name = "fixContainerName")
    var fixContainerName: String? = null,//应在馆藏位置
    @ColumnInfo(name = "currentContainerId")
    var currentContainerId: Int = 0,////当前馆藏位置
    @ColumnInfo(name = "currentContainerName")
    var currentContainerName: String? = null,////当前馆藏位置
    @ColumnInfo(name = "isbn")
    var isbn: String? = null,
    @ColumnInfo(name = "publisher")
    var publisher: String? = null,
    @ColumnInfo(name = "bookOnShelfStatus")
    var bookOnShelfStatus: Int = 0, // 正确在架 1 错架 2  3:不在架
    @ColumnInfo(name = "invertoryInfoStatus")
    var invertoryInfoStatus : Int = 0,//盘点状态
    @ColumnInfo(name = "misShelvedStatus")
    var misShelvedStatus : Int = 0,//错架整理状
    @ColumnInfo(name = "createDate")
    var createDate: Date = Date(),
)